package com.atguigu.spzx.product.mapper;

import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.product.ProductSku;
import com.atguigu.spyx.model.dto.h5.ProductSkuDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LT
 * @create 2023-11-18-16:43
 */
@Mapper
public interface ProductSkuMapper {
    List<ProductSku> page(ProductSkuDto productSkuDto);

    ProductSku findById(Long skuId);

    List<ProductSku> findByProductId(Long id);

    void updateSalesAndStock(@Param("skuId") Long skuId,@Param("skuNum") Integer skuNum);

}
